import { http } from '@/untils'
import type { ResType } from './shared'

export type DetailRes = {
    art_id: string
    title: string
    pubdate: string
    content: string
}

//请求获取详情
const fetchDetailAPI = (article_id: string) => {
    return http.request<ResType<DetailRes>>({
        url: `/articles/${article_id}`
    })
}

export { fetchDetailAPI }


